package com.sjllb.tank;

import java.awt.*;
/**
 * 障碍物类，障碍墙
 * @author lianlibo
 *
 */
public class Wall {
	int x, y, w, h;
	TankClient tc;
	public Wall(int x, int y, int w, int h, TankClient tc) {
		super();
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.tc = tc;
	}
	
	public void draw(Graphics g){
		g.fillRect(x, y, w, h);
	}
	
	public Rectangle getRec(){
		return new Rectangle(x, y, w, h);
	}
}
